package com.seaking.dao;

import com.seaking.pojo.Platform;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate5.HibernateTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wchha on 10/24 0024.
 */
@Repository
public class PlatformDao {

    @Autowired
    private HibernateTemplate hibernateTemplate;

    public List<Platform> getPlatform() {
        List<Platform> platforms = hibernateTemplate.loadAll(Platform.class);
        return platforms;
    }
}
